
<div class="extraPayments index">
    <h2><?php echo __('Gastos Extras'); ?></h2>
    <table cellpadding="0" cellspacing="0">
        <tr>
            <th><?php echo $this->Paginator->sort('description', 'Descripcion'); ?></th>
            <th><?php echo $this->Paginator->sort('date', 'Fecha'); ?></th>
<!--			<th><?php // echo $this->Paginator->sort('cash_dailies_id');   ?></th>-->
            <th><?php echo $this->Paginator->sort('total', 'Total ($)'); ?></th>
            <th class="actions"><?php echo __('Opciones'); ?></th>
        </tr>
        <?php foreach ($extraPayments as $extraPayment): ?>
            <tr>
                <td><?php echo h($extraPayment['ExtraPayment']['description']); ?>&nbsp;</td>
                <td><?php echo h($extraPayment['ExtraPayment']['date']); ?>&nbsp;</td>
<!--                <td> <?php // echo $this->Html->link($extraPayment['ExtraPayment']['cash_dailies_id'], array('controller' => 'cash_dailies', 'action' => 'view', $extraPayment['ExtraPayment']['id'])); ?> </td>-->
                <td><?php echo h($extraPayment['ExtraPayment']['total']); ?>&nbsp;</td>
                <td class="actions">
                    <?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $extraPayment['ExtraPayment']['id'])); ?>
                    <?php echo $this->Form->postLink(__('Borrar'), array('action' => 'delete', $extraPayment['ExtraPayment']['id']), null, __('Are you sure you want to delete # %s?', $extraPayment['ExtraPayment']['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
    <p>
        <?php
        echo $this->Paginator->counter(array(
            'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
        ));
        ?>	</p>
    <div class="paging">
        <?php
        echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
        echo $this->Paginator->numbers(array('separator' => ''));
        echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
        ?>
    </div>
</div>

<div class="actions">
    <h3><?php echo __('Opciones'); ?></h3>
    <ul>
        <li><?php echo $this->Html->link(__('Agregar Gasto'), array('controller' => 'ExtraPayments', 'action' => 'add')); ?> </li>
    </ul>
</div>

<!--Show General Menu-->
<?php echo $this->element('menues/general') ?>

